#ifndef _SET_ADC_H
#define _SET_ADC_H
#include <avr/io.h>
#include <avr/interrupt.h>

#define ADCA_BUFFER_SIZE0 100

extern volatile int adc_buffer0[ADCA_BUFFER_SIZE0];
extern volatile unsigned char adc_wr_index0;
extern volatile unsigned char adc_rd_index0;
extern volatile unsigned char adc_counter0;
extern volatile char adc_buffer_overflow0;
extern double deltah;

void myInit_ADC(void);
void myEventInit_ADC(void);
int myADC_getdataCH0(void);
int myADC_getdataCH1(void);
int myADC_getdataCH2(void);
int myADC_getdataCH3(void);
int myADC_Bufgetdata(void);
void myADC_ClearBuff(void);
void myADC_StartSample(void);
void myADC_StopSample(void);
#endif